﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MenuEmpresaParada.aspx.cs"
    Inherits="VemTransporte.Views.UsuarioEmpresa.CadastroParada" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>..:: STI ::..</title>
    <link href="../../Content/Estilo/stylo.css" rel="stylesheet" type="text/css" />
    <link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
    <link href="../../Content/menuEmpresa_files/css3menu1/style.css" rel="stylesheet"
        type="text/css" />
</head>
<body id="corpo2">
    <!-- Div Topo Inicio -->
    <div id="topo">
        <asp:HyperLink ID="HyperLink8" runat="server" NavigateUrl="~/Views/UsuarioEmpresa/MenuEmpresa.aspx">
        <div id="logoTopo"></div>
        </asp:HyperLink>
        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Views/UsuarioEmpresa/LoginEmpresa.aspx">
        <div id="sair"></div>
        </asp:HyperLink>
    </div>
    <br />
    <form id="form1" runat="server">
    <table>
        <tr>
            <td>
                <table>
                    <tr>
                        <td>
                            <asp:Image ID="ImageEmpresaLogoTipo" runat="server" Height="138px" Width="137px"
                                ImageUrl="~/Content/Imagens/default_logo.jpg" />
                            <br />
                            <asp:HyperLink ID="HyperLink9" runat="server" NavigateUrl="~/Views/UsuarioEmpresa/MenuEmpresaLogoTipo.aspx">Alterar Logotipo</asp:HyperLink>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="Label1" runat="server" Text="Bem vindo," Font-Bold="True" ForeColor="#000099"></asp:Label>
                            <br />
                            <asp:Label ID="LabelNomeEmpresa" runat="server" Text="Label" Font-Bold="True" ForeColor="#000099"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <ul id="css3menu1" runat="server" class="topmenu">
                                <li runat="server" class="topfirst" id="liMenuEmpresaCadastro"><a href="MenuEmpresaCadastrar.aspx"
                                    title="Alterar Dados Empresa" style="width: 206px;">Alterar Dados Empresa</a></li>
                                <li runat="server" id="liMenuCadastroInicialEmpresa"><a href="CadastroInicialEmpresa.aspx"
                                    title="Cadastro de Empresa" style="width: 206px;">Cadastrar Empresa</a></li>
                                <li runat="server" id="liMenuAlterarEndEmpresa"><a href="MenuEmpresaEndereco.aspx"
                                    title="Alterar Endereço" style="width: 206px;">Alterar Endereço</a></li>
                                <li runat="server" id="liMenuCadastrarTelefones"><a href="MenuEmpresaTelefones.aspx"
                                    title="Cadastrar Telefones" style="width: 206px;">Cadastrar Telefones</a></li>
                                <li runat="server" id="liMenuAlterarSenhaEmpresa"><a href="MenuEmpresaAlterarSenha.aspx"
                                    title="Alterar Senha" style="width: 206px;">Alterar Senha</a></li>
                                <li runat="server" id="liMenuAlterarLinhaEmpresa"><a href="MenuEmpresaLinha.aspx"
                                    title="Cadastro de Linhas" style="width: 206px;">Cadastro de Linhas</a></li>
                                <li runat="server" id="liMenuCadastroParadaEmpresa"><a href="#" title="Cadastro de Paradas"
                                    style="width: 206px; background-color: #3a1300; border-color: #C0C0C0; border-style: solid;
                                    font: bold 14px Trebuchet MS; color: #ffffff; text-decoration: none; background-position: 0 100px;">
                                    Cadastro de Paradas</a></li>
                                <li runat="server" id="liMenuHoraLinhaEmpresa"><a href="MenuEmpresaHorario.aspx"
                                    title="Cadastro de Horarios das Linhas" style="width: 206px;">Cadastro de Horarios
                                    das Linhas</a></li>
                                <li runat="server" id="liMenuEmpresaVeiculo"><a href="MenuEmpresaCadastroVeiculo.aspx"
                                    title="Cadastro de Veículos" style="width: 206px;">Cadastro Veículos</a></li>
                                <li runat="server" id="liMenuEmpresaLinhaParada"><a href="MenuEmpresaLinhaParada.aspx"
                                    title="Cadastro de Linha/Parada" style="width: 206px;">Cadastro de Linha/Parada</a></li>

                            </ul>
                            <p>
                                &nbsp;</p>
                        </td>
                    </tr>
                </table>
            </td>
            <td style="width: 10%">
            </td>
            <td style="width: 90%">
                <asp:ScriptManager ID="ScriptManager1" runat="server">
                </asp:ScriptManager>
                <span class="failureNotification">
                    <asp:Literal ID="ErrorMessage" runat="server"></asp:Literal>
                </span>
                <asp:ValidationSummary ID="RegisterUserValidationSummary" runat="server" CssClass="failureNotification"
                    ValidationGroup="RegisterUserValidationGroup" />
                <div>
                    
                    
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <ContentTemplate>
                            <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
                                <ProgressTemplate>
                                    <asp:Image ID="Image1" runat="server" ImageUrl="~/Content/gifs/wait_gif.gif" />
                                </ProgressTemplate>
                            </asp:UpdateProgress>
                            <table style="width: 100%;">
                                <tr>
                                    <td>
                                        <asp:Label ID="LabelParaNumero0" runat="server" Font-Names="verdana" Font-Size="12px"
                                            ForeColor="#203360" Text="Informe o Numero da Parada:">
                                        </asp:Label>
                                        &nbsp;
                                    </td>
                                    <td>
                                        <asp:Label ID="LabelLatitutde1" runat="server" Font-Names="verdana" Font-Size="12px"
                                            ForeColor="#203360" Text="Informe a Latitude:"></asp:Label>
                                    </td>
                                    <td>
                                        <asp:Label ID="LabelLongitude1" runat="server" Font-Names="verdana" Font-Size="12px"
                                            ForeColor="#203360" Text="Informe a Longitude:"></asp:Label>
                                    </td>
                                    <td align="center" rowspan="3">
                                        <asp:Button ID="ButtonCadastrarParada" runat="server" OnClick="ButtonCadastrarParada_Click"
                                            Text="Cadastrar" BackColor="#6ea954" BorderColor="#6ea954" ForeColor="White"
                                            Height="30px" Width="100px" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:TextBox ID="TextBoxNumero" runat="server" Height="30px" Width="178px">
                                        </asp:TextBox>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="TextBoxLatitude" runat="server" Height="30px" Width="178px">
                                        </asp:TextBox>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="TextBoxLongitude" runat="server" Height="30px" Width="178px">
                                        </asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBoxNumero"
                                            CssClass="field-validation-error" ErrorMessage="Digite o numero da Parada!" ValidationGroup="ValidationSummary1">
                                        </asp:RequiredFieldValidator>
                                    </td>
                                    <td>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TextBoxLatitude"
                                            CssClass="field-validation-error" ErrorMessage="Informe a Latitude!" ValidationGroup="ValidationSummary1">
                                        </asp:RequiredFieldValidator>
                                    </td>
                                    <td>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="TextBoxLongitude"
                                            CssClass="field-validation-error" ErrorMessage="Informe a Longitude!" ValidationGroup="ValidationSummary1">
                                        </asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                            </table>
                            <asp:GridView ID="GridViewParada" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                                CellPadding="4" EmptyDataText="Nenhuma parada cadastrada!" OnPageIndexChanging="GridViewParada_PageIndexChanging"
                                OnRowCommand="GridViewParada_RowCommand" OnRowDataBound="GridViewParada_RowDataBound"
                                OnRowDeleting="GridViewParada_RowDeleting" OnRowEditing="GridViewParada_RowEditing"
                                Width="626px" ForeColor="#333333" GridLines="None" OnRowUpdated="GridViewParada_RowUpdated"
                                OnRowUpdating="GridViewParada_RowUpdating">
                                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                                <Columns>
                                    <asp:BoundField DataField="Numero" HeaderText="Número">
                                        <HeaderStyle HorizontalAlign="Left" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="Latitude" HeaderText="Latitude">
                                        <HeaderStyle HorizontalAlign="Left" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="Longitude" HeaderText="Longitude">
                                        <HeaderStyle HorizontalAlign="Left" />
                                    </asp:BoundField>
                                    <asp:TemplateField>
                                        <ItemTemplate>
                                            <asp:ImageButton ID="ImageButtonExcluir" runat="server" CommandName="excluir" ImageUrl="~/Content/Imagens/DeleteRed.png" />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:CommandField ButtonType="Image" EditImageUrl="~/Content/Imagens/edit-icon.png"
                                        ShowEditButton="True" />
                                </Columns>
                                <%--                    <EmptyDataTemplate>
                                    <asp:ImageButton ID="ImageButtonExcluir" runat="server" CommandName="excluir" ImageUrl="~/Content/Imagens/DeleteRed.png"
                                        PostBackUrl="MenuEmpresaParada.aspx" />
                                </EmptyDataTemplate>--%>
                                <EditRowStyle BackColor="#999999" />
                                <FooterStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True" />
                                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                <SortedAscendingCellStyle BackColor="#E9E7E2" />
                                <SortedAscendingHeaderStyle BackColor="#506C8C" />
                                <SortedDescendingCellStyle BackColor="#FFFDF8" />
                                <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                            </asp:GridView>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </div>
            </td>
        </tr>
    </table>
    </form>
    <hr style="color: #ccc" />
    <center style="color: #999; font-size: 12px;">
        Vem Tranporte - Sistema de Trasnporte Inteligente - 2011
    </center>
    <br />
</body>
</html>
